<?php
include('./db_config.php');
	session_start();
	$link = mysql_connect($db_host, $db_user, $db_password) or die ("Connection failed due to: " . mysql_error());
mysql_select_db ($db_name) or die("Selection failed due to: " . mysql_error());
$query = "INSERT INTO `location` ( `pk` , `name` )VALUES (NULL , '".$_POST['loc']."');";
	mysql_query($query) or die("Query failed due to: " . mysql_error());
	header("Location: ./mpanel.php?loc=success");
	exit;
?>